//地图大小屏幕改变
window.addEventListener("resize", function () {
  column1PointMyChart.resize();
  column2ColumnMyChart.resize();
  column2MapMyChart.resize();
  channelSalesMyChart1.resize();
  channelSalesMyChart.resize();
  salesVolumeMyChart.resize();
});

// 故障设备滚动

var scollBox = document.querySelector(".scoll-box");
scollBox.innerHTML += scollBox.innerHTML;
var intervalTime = 50;
var timer = null;

function getScollTime() {
  timer = setInterval(getScollbox, intervalTime);
}
function getScollbox() {
  scollBox.scrollTop++;

  if (scollBox.scrollTop > scollBox.offsetHeight) {
    scollBox.scrollTop = 0;
  }
}
getScollTime();

var column3OrderGoodsUl = document.querySelectorAll(
  ".column3_orderGoods ul li"
);

var arr3 = [42143, 24323, 31432, 13124];
var arr4 = [3423, 4356, 9899, 8765];

column3OrderGoodsUl[0].style.color = "#fff";
function changeTextColor() {
  column3OrderGoodsUl.forEach((item) => {
    item.style.color = "rgb(47, 113, 210)";
  });
  column3OrderGoodsUl[index].style.color = "#fff";
}

var one = document.querySelector("#one");
var two = document.querySelector("#two");

function changeBotText(index) {
  one.innerHTML = arr3[index];
  two.innerHTML = arr4[index];
}
